package com.lavida.project.system.checkrule.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lavida.project.system.checkrule.domain.CheckRule;
import com.lavida.project.system.checkrule.mapper.CheckRuleMapper;

@Service
public class CheckRuleServiceimpl implements CheckRuleService{
	@Autowired
	private CheckRuleMapper checkMpaaer;
	@Override
	public List<CheckRule> selectRule(CheckRule checkRule) {
		// TODO Auto-generated method stub
		return checkMpaaer.selectRule(checkRule);
	}
	@Override
	public int insertRule(CheckRule checkRule) {
		// TODO Auto-generated method stub
		return checkMpaaer.insertRule(checkRule);
	}
	@Override
	public int deleteRule(int id) {
		// TODO Auto-generated method stub
		return checkMpaaer.deleteRule(id);
	}
	@Override
	public CheckRule getRule(int id) {
		// TODO Auto-generated method stub
		
		return checkMpaaer.getRule(id);
	}
	@Override
	public int updateRule(CheckRule checkRule) {
		// TODO Auto-generated method stub
		return checkMpaaer.updateRule(checkRule);
	}

}
